<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/demo_page.css">
	<link rel="stylesheet" type="text/css" href="css/demo_table.css">
	<link rel="stylesheet" type="text/css" href="css/jquery.dataTables.css">
	<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
	<script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
	<script type="text/javascript">
		function listdata2(){
		    var pageNo = document.getElementById('pageNo').value;
		    var pageSize = document.getElementById('pageSize').value;
			$.ajax({
	            type: "get",//使用get方法访问后台
	            dataType: "json",//返回json格式的数据
	            url: "/info/foodlist/"+pageNo+"/"+pageSize+".do",//要访问的后台地址
	            complete :function(){alert(complete);},//AJAX请求完成时隐藏loading提示
	            success: function(msg){//msg为返回的数据，在这里做数据绑定
	            	var pageCount = msg.pageCount;
	            	alert(pageCount);
	                var data = msg.list;
	                $.each(data, function(i, n){
	                    var row = $("#template").clone();
	                    row.find("#id").text(n.id);
	                    row.find("#diffTime").text(n.diffTime);
	                    row.find("#title").text(n.title);
	                    row.find("#space").text(n.space);
	                    row.find("#price").text(n.price);
	                    row.find("#roomType").text(n.roomType);
	                    row.find("#area").text(n.area);
	                    row.find("#url").html("<a href="+n.url+">原始网址</a>");                    
	                    row.find("#building").text(n.building);
	                    row.find("#floor").text(n.floor);
	                    row.find("#src").text(n.src);
	                    row.attr("id","ready");//改变绑定好数据的行的id
	                    row.appendTo("#listTable");//添加到模板的容器中
	                });
	            }
	        });
	   }

	</script>
  </head>
  
  <body>
    <div  style="color:black;width:920px;height:150px;" onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='none'">
	    <form action="info/savefood.do" name="addblacklist" method="post" enctype="multipart/form-data">
	    	添加食谱测试 <br>
		    name:<input id="name" name="name" type="text" value=""/><br>
		    desc:<input id="desc" name="desc" type="text" value=""/><br>
		    state:<input id="state" name="state" type="text" value="1"/><br>
		    nid:<input id="nid" name="nid" type="text" value="1"/><br>
		    file:<input id="" name="file" type="file" value=""/><br>
		    <input type="submit" value="提交" style="background-color:pink">  
	    </form>
    </div>
    <br>
    <hr>
     <div  style="color:black;width:920px;height:150px;" onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='none'">
	    <form action="login/userlogin.do" name="addblacklist" method="post" >
	    	登录测试 <br>
		    name:<input id="username" name="username" type="text" value=""/><br>
		    password:<input id="password" name="password" type="text" value=""/><br>
		    <input type="submit" value="提交" style="background-color:pink">  
	    </form>
    </div>
    <br>
    <hr>
    <div  style="color:black;width:920px;height:150px;" onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='none'">
	    <form action="info/savenotice.do" name="addblacklist" method="post" enctype="multipart/form-data">
	    	发布通知测试 <br>
		    title:<input id="title" name="title" type="text" value=""/><br>
		    content:<input id="content" name="content" type="text" value=""/><br>
		    state:<input id="state" name="state" type="text" value="1"/><br>
		    classid:<input id="classid" name="classid" type="text" value="1"/><br>
		    <input type="submit" value="提交" style="background-color:pink">  
	    </form>
    </div>
    <br>
    <hr>
    <div  style="color:black;width:920px;height:150px;" onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='none'">
	   	 测试食谱查询 <br>
	    <form action="info/foodlist/1/10.do" name="addblacklist" method="get" enctype="multipart/form-data">
		    <input type="submit" value="提交" style="background-color:pink">  
	    </form>
    </div>
    <br>
    <hr>
    <div  style="color:black;width:920px;height:150px;" onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='none'">
    <form action="info/saveactive.do" name="addblacklist" method="post" enctype="multipart/form-data">
    	发布活动测试 <br>
	    address:<input id="address" name="address" type="text" value=""/><br>
	    content:<input id="content" name="content" type="text" value=""/><br>
	    start：<input id="start" name="start" type="text" value=""/><br>
	    end：<input id="end" name="end" type="text" value=""/><br>
	    state:<input id="state" name="state" type="text" value="1"/><br>
	    classid:<input id="classid" name="cid" type="text" value="1"/><br>
	    <input type="submit" value="提交" style="background-color:pink">  
    </form>
    </div>
    <br>
    <hr>
    <div  style="color:black;width:920px;height:150px;" onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='none'">
    <form action="info/saveparentingwork.do" name="addblacklist" method="post" enctype="multipart/form-data">
    	发布亲子作业 <br>
	    title:<input id="title" name="title" type="text" value=""/><br>
	    content:<input id="content" name="content" type="text" value=""/><br>
	    classid:<input id="cid" name="cid" type="text" value="1"/><br>
	    <input type="submit" value="提交" style="background-color:pink">  
    </form>
    </div>
    <br>
    <hr>
    <div  style="color:black;width:920px;height:150px;" onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='none'">
    <form action="info/saveremind.do" name="addblacklist" method="post" enctype="multipart/form-data">
    	发布提醒 <br>
	    content:<input id="content" name="content" type="text" value=""/><br>
	    nid:<input id="nid" name="nid" type="text" value="1"/><br>
	    <input type="submit" value="提交" style="background-color:pink">  
    </form>
    </div>
    <br>
    <hr>
    
    <div  style="color:black;width:920px;height:250px;" onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='none'">
    <form action="info/saveWeekCourse.do" name="addblacklist" method="post" enctype="multipart/form-data">
    	排课 <br>
	            幼儿园(nid):<input id="nid" name="nid" type="text" value="1"/><br>
	            班级(cid):<input id="cid" name="cid" type="text" value="1"/><br>
	            第几节课(daysr):<input id="daysr" name="daysr" type="text" value="1"/><br>
	            星期(weekNo):<input id="weekNo" name="weekNo" type="text" value="1"/><br>
	            课程(courseid):<input id="courseid" name="courseid" type="text" value="1"/><br>
	            课程名(courseid):<input id="courseName" name="courseName" type="text" value="1"/><br>        
	    <input type="submit" value="提交" style="background-color:pink">  
    </form>
    </div>
    <br>
    <hr>
    
     <div  style="color:black;width:920px;height:150px;" onmouseover="this.style.border='1px solid red'" onmouseout="this.style.border='none'">
    <form action="info/saveCourse.do" name="addblacklist" method="post" enctype="multipart/form-data">
    	新排课接口 <br>
	            幼儿园(nid):<input id="nid" name="nid" type="text" value="1"/><br>
	            班级(cid):<input id="cid" name="cid" type="text" value="1"/><br>
	            是否本周(isThisWeek):<input id="isThisWeek" name="isThisWeek" type="text" value="1"/><br>
	            一周课表(courses):<textarea rows="5" cols="30" name="courses" id="courses"></textarea>
	    <input type="submit" value="提交" style="background-color:pink">  
    </form>
    </div>
    <br>
    <hr>
  </body>
</html>
